package com.runssnail.demo.spring.biz.service.impl;

import com.runssnail.demo.spring.biz.service.HelloWorldService;

/**
 * Created by zhengwei on 2016/2/2.
 */
public class HelloWorldServiceImpl implements HelloWorldService {

    public void sayHello() {
        System.out.println("hello world");
    }

    public void sayBefore(String param) {
        System.out.println("=========say " + param);
    }

    public boolean sayAfterReturning() {
        System.out.println("============after returning");
        return true;
    }

    public void sayAfterThrowing() {
        System.out.println("============before throwing");
        throw new RuntimeException();
    }

    public boolean sayAfterFinally() {
        System.out.println("============before finally");
        throw new RuntimeException();
    }
}
